package com.app.model;

import com.app.vo.TrainSpecialityVo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

//培训机构信息
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_train")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TrainModel {
    @TableId(type = IdType.AUTO)
    private Integer id;// 培训机构id
    private String trainInstitution;//培训机构名称
    private String trainPhone;//联系电话
    private String trainAddress;//培训地址
    private Integer city;//城市
    private String basicIntroduction;//培训单位基本介绍
    private Double longitude;//经度
    private Double latitude;//纬度

    @TableField(exist = false)
    private Double distance;//距离


    @TableField(exist = false)
    private TrainSpecialityVo entrepreneurshipTrain;
    @TableField(exist = false)
    private TrainSpecialityVo skillTrain;
    @TableField(exist = false)
    private String cityText;//城市


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;




}
